<@master template="common/default" title="团队信息">
<#macro userStructureViewsRender userStructureViewList level>
	<#list userStructureViewList as userStructureView>
		<div class="mt20">
			<div >
				<@levelRender level=level/>
				<#if userStructureView.children?size==0>-<#else>+</#if>
				 ${userStructureView.userName}(${userStructureView.userCode}) <@permission permissionName="admin"><a href="<@url value='/user/structure/getUpdateParentView?code=${userStructureView.userCode}'/>" class="fr edit btn_blue action-ajax-btn">修改父结点</a></@permission>
			</div>
			<@userStructureViewsRender  userStructureViewList=userStructureView.children level=level+1/>
		</div>
	</#list>
</#macro>

<#macro levelRender level>
	<#list 0..100 as t>
		<#if t=level><#break/></#if>
		<span>&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp</span>
	</#list>
</#macro>

<div class="detailsBox clearfix">
	<@userStructureViewsRender  userStructureViewList=userStructureViews level=0/>
</div>


</@master>
